.class public Lcom/tencent/open/c/a;
.super Ljava/lang/Object;


# direct methods
.method public static a(I)I
    .locals 3

    const/4 v2, 0x0

    const/16 v0, 0x64

    if-nez p0, :cond_2

    invoke-static {}, Lcom/tencent/a/b/a;->a()Landroid/content/Context;

    move-result-object v1

    invoke-static {v1, v2}, Lcom/tencent/open/d/o;->a(Landroid/content/Context;Ljava/lang/String;)Lcom/tencent/open/d/o;

    move-result-object v1

    const-string v2, "Common_ViaSuccessRatioFrequencySuccess"

    invoke-virtual {v1, v2}, Lcom/tencent/open/d/o;->a(Ljava/lang/String;)I

    move-result v1

    if-nez v1, :cond_1

    :cond_0
    :goto_0
    return v0

    :cond_1
    move v0, v1

    goto :goto_0

    :cond_2
    invoke-static {}, Lcom/tencent/a/b/a;->a()Landroid/content/Context;

    move-result-object v1

    invoke-static {v1, v2}, Lcom/tencent/open/d/o;->a(Landroid/content/Context;Ljava/lang/String;)Lcom/tencent/open/d/o;

    move-result-object v1

    const-string v2, "Common_ViaSuccessRatioFrequencyFail"

    invoke-virtual {v1, v2}, Lcom/tencent/open/d/o;->a(Ljava/lang/String;)I

    move-result v1

    if-eqz v1, :cond_0

    move v0, v1

    goto :goto_0
.end method

.method public static a(Ljava/lang/String;)I
    .locals 2

    invoke-static {}, Lcom/tencent/a/b/a;->a()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0, p0}, Lcom/tencent/open/d/o;->a(Landroid/content/Context;Ljava/lang/String;)Lcom/tencent/open/d/o;

    move-result-object v0

    const-string v1, "Common_BusinessReportFrequency"

    invoke-virtual {v0, v1}, Lcom/tencent/open/d/o;->a(Ljava/lang/String;)I

    move-result v0

    if-nez v0, :cond_0

    const/16 v0, 0x64

    :cond_0
    return v0
.end method

.method protected static a()Landroid/content/SharedPreferences;
    .locals 3

    invoke-static {}, Lcom/tencent/a/b/a;->a()Landroid/content/Context;

    move-result-object v0

    const-string v1, "reportConfig"

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Landroid/content/Context;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v0

    return-object v0
.end method

.method public static a(J)V
    .locals 2

    invoke-static {}, Lcom/tencent/a/b/a;->a()Landroid/content/Context;

    move-result-object v0

    if-nez v0, :cond_0

    :goto_0
    return-void

    :cond_0
    invoke-static {}, Lcom/tencent/open/c/a;->a()Landroid/content/SharedPreferences;

    move-result-object v0

    invoke-interface {v0}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v0

    const-string v1, "lastTime"

    invoke-interface {v0, v1, p0, p1}, Landroid/content/SharedPreferences$Editor;->putLong(Ljava/lang/String;J)Landroid/content/SharedPreferences$Editor;

    invoke-interface {v0}, Landroid/content/SharedPreferences$Editor;->commit()Z

    goto :goto_0
.end method

.method public static b()J
    .locals 4

    invoke-static {}, Lcom/tencent/a/b/a;->a()Landroid/content/Context;

    move-result-object v0

    const-string v1, "reportConfig"

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Landroid/content/Context;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v0

    const-string v1, "lastTime"

    const-wide/16 v2, 0x0

    invoke-interface {v0, v1, v2, v3}, Landroid/content/SharedPreferences;->getLong(Ljava/lang/String;J)J

    move-result-wide v0

    return-wide v0
.end method

.method public static c()I
    .locals 2

    invoke-static {}, Lcom/tencent/a/b/a;->a()Landroid/content/Context;

    move-result-object v0

    const/4 v1, 0x0

    invoke-static {v0, v1}, Lcom/tencent/open/d/o;->a(Landroid/content/Context;Ljava/lang/String;)Lcom/tencent/open/d/o;

    move-result-object v0

    const-string v1, "Common_BusinessReportMaxcount"

    invoke-virtual {v0, v1}, Lcom/tencent/open/d/o;->a(Ljava/lang/String;)I

    move-result v0

    if-nez v0, :cond_0

    const/4 v0, 0x1

    :cond_0
    return v0
.end method

.method public static d()J
    .locals 4

    invoke-static {}, Lcom/tencent/a/b/a;->a()Landroid/content/Context;

    move-result-object v0

    const/4 v1, 0x0

    invoke-static {v0, v1}, Lcom/tencent/open/d/o;->a(Landroid/content/Context;Ljava/lang/String;)Lcom/tencent/open/d/o;

    move-result-object v0

    const-string v1, "Common_BusinessReportTimeinterval"

    invoke-virtual {v0, v1}, Lcom/tencent/open/d/o;->b(Ljava/lang/String;)J

    move-result-wide v0

    const-wide/16 v2, 0x0

    cmp-long v2, v0, v2

    if-nez v2, :cond_0

    const-wide/16 v0, 0x3c

    :cond_0
    return-wide v0
.end method

.method public static e()I
    .locals 2

    invoke-static {}, Lcom/tencent/a/b/a;->a()Landroid/content/Context;

    move-result-object v0

    const/4 v1, 0x0

    invoke-static {v0, v1}, Lcom/tencent/open/d/o;->a(Landroid/content/Context;Ljava/lang/String;)Lcom/tencent/open/d/o;

    move-result-object v0

    const-string v1, "Common_HttpRetryCount"

    invoke-virtual {v0, v1}, Lcom/tencent/open/d/o;->a(Ljava/lang/String;)I

    move-result v0

    if-nez v0, :cond_0

    const/4 v0, 0x2

    :cond_0
    return v0
.end method
